package com.etoak.controller;

import com.etoak.entity.OrderList;
import com.etoak.mapper.OrderListMapper;
import com.etoak.service.OrderService;
import com.etoak.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    OrderListMapper orderListMapper;
    @GetMapping("/list")
    public ResultVO<List<OrderList>> list( ){
        List<OrderList> dictList = orderListMapper.list();

        return ResultVO.success(dictList);
    }
}
